package com.example.demo.service;

import com.example.demo.pojo.User;
import com.example.demo.pojo.Usercoupon;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserCouponService {
    //新增用户优惠卷
    int insert(Usercoupon usercoupon);

    int deleteByPrimaryKey(Integer id);
    //查找所有优惠卷
    @Select("select * from usercoupon")
    List<Usercoupon> select();

    Usercoupon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Usercoupon record);

    int updateByPrimaryKey(Usercoupon record);
}
